package com.nit.netty.sender;

import io.netty.channel.Channel;
import com.nit.netty.model.Request;

import java.net.SocketAddress;

/**
 * @Author: whb
 * @Description:
 * @CreateTime: 2020/8/21 10:17
 */
public interface RequestSender {
    Channel connect(SocketAddress address) throws InterruptedException;

    Object send(Request request) throws InterruptedException;
}
